import axios from 'axios';

const instance = axios.create({
  baseURL: '',
})

// 请求
instance.interceptors.request.use((config) => {
  console.log(config);

  return config
}, (error) => {

  return Promise.reject(error)
})

// 响应
instance.interceptors.response.use((response) => {
  console.log(response);
  console.log(response.data);

  return response

}, err => {
  return Promise.reject(err)

})



// instance.interceptors.request.eject(inter)

export default instance
